package com.ruoyi.common.constant;


import io.jsonwebtoken.Claims;

import java.math.BigDecimal;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {


    public static final String SUCCESS_STR = "SUCCESS";
    public static final String FAIL_STR = "FAIL";
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 代驾司机 redis key
     */
    public static final String LOGIN_TOKEN_KEY_DRIVER = "login_tokens_driver:";

    /**
     * 检测站用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY_STATION = "login_tokens_station:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";


    /**
     * 令牌
     */
    public static final String UUID = "id";

    public static final String LOGIN_NAME = "username";

    public static final String AGE = "age";


    public static final String SEX = "sex";


    public static final String FOLLOW = "follow";


    public static final String FANS = "fans";


    public static final String WOMEN = "1";

    public static final String MEN = "2";

    public static final String INTRO = "introduction";
    /**
     * 手机号
     */
    public static final String MOBILE = "mobile";
    /**
     * 登录状态
     */
    public static final String LOGIN_FLAG = "loginFlag";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static final String JWT_USERNAME = Claims.SUBJECT;

    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";


    public static final String MEMBER_LEVEL = "level";

    public static final Integer PASS_LENTH = 8;


    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";


    /**
     * 代驾司机认证
     */
    public static final String DRIVER_AUTH = "DRIVER_AUTH";

    /**
     * 翻拍程序认证
     */
    public static final String REMAKE_AUTH = "REMAKE_AUTH";

    /**
     * 会员认证
     */
    public static final String MEMBER_AUTH = "MEMBER_AUTH";

    /**
     * 检测站用户认证
     */
    public static final String STATION_AUTH = "STATION_AUTH";
    /**
     * 中间商用户认证
     */
    public static final String AGENT_AUTH = "AGENT_AUTH";

    /**
     * 车辆使用性质（非营运）
     */
    public static final int CAR_TYPE_NON_OPERATING = 1;
    /**
     * 车辆使用性质（营运）
     */
    public static final int CAR_TYPE_OPERATING = 2;

    /**
     * 六年免检
     */
    public static final int ORDER_TYPE_MJ = 1;
    /**
     * 代驾审车
     */
    public static final int ORDER_TYPE_DJ = 2;
    /**
     * 自驾审车
     */
    public static final int ORDER_TYPE_ZJ = 3;

    /**
     * 上线审车
     */
    public static final int COUPON_TYPE_SC = 3;
    /**
     * 代驾
     */
    public static final int COUPON_TYPE_DJ = 2;
    /**
     * 免检
     */
    public static final int COUPON_TYPE_MJ = 1;


    /**
     * 是
     */
    public static final int SYS_YES = 1;

    /**
     * 否
     */
    public static final int SYS_NO = 0;


    /**
     * 小程序模版集合Key前缀
     */
    public static final String WX_SUBSCRIBE_MSG_KEY = "WX_SUBSCRIBE_MSG_KEY_{}";

    public static final String URL_SERVER = "IMG_URL";

    /**
     * 病例分类
     */
    public static final String CASE_CLASS = "case_class";

    /**
     * 病例状态分类
     */
    public static final String PRINT_STATUS = "print_status";

    public static final String PRINT_FEE = "print_fee";


    public static final String AREA_DICt = "sys_area";

    /**
     * 短信验证码前缀
     */
    public static final String REDIS_PRE_SMS = "SMS_";

    /**
     * 是否可以发送消息前缀
     */
    public static final String CAN_SEND_MSG = "CAN_SEND_MSG_";

    /**
     * 融云用户id类型前缀-会员
     */
    public static final String IM_USER_PRE_MEMBER = "MEMBER_";
    /**
     * 融云用户id类型前缀-系统用户
     */
    public static final String IM_USER_PRE_SYS = "SYS_";
    /**
     * 融云群组id类型前缀-活动
     */
    public static final String IM_GROUP_PRE_ACTIVITY = "ACTIVITY_";
    /**
     * 融云群组id类型前缀-旅游
     */
    public static final String IM_GROUP_PRE_TOURISM = "TOURISM_";

    /**
     * 融云群组id类型前缀-活动
     */
    public static final String GF_NAME = "官方";


    /**
     * 融云群组id类型前缀-活动
     */
    public static final String GF_IMG = "gf.png";

    public static final String DEAFULT_BACK_IMG = "default.png";

    public static final String ANDROID_URL = "android_url";
    /*招聘海报*/
    public static final String ZP_IMG = "20231004zp.png";

    public static final String HOT_SEARCH ="hot_search" ;
    public static final String UROLE_WECHATUSER ="11111" ;
    public static final String WECHAT_AUTH = "222222";
    public static final String LOGIN_TOKEN_KEY_WECHAT ="" ;
}
